import request from '@/utils/request'

export function getDataList(query) {
  return request({
    url: '/car/carWorkOrder/list',
    method: 'get',
    params: query
  })
}


// 新增

export function addMaintenance(data) {
  return request({
    url: '/car/carMaintenance/save',
    method: 'post',
    data: data
  })
}

//处理详情
export function getFindCarWorkOrderInfoVo(id) {
  return request({
    url: '/car/carWorkOrder/findCarWorkOrderInfoVo/' + id,
    method: 'get'
  })
}

// 查询详情 维修
export function getMaintenance(id) {
  return request({
    url: '/car/carMaintenance/' + id,
    method: 'get'
  })
}
